<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body></body>
</html>

<script>
  var i = 100;

  while (i < 1000) {
    var first = parseInt(i / 100);
    var second = parseInt(i / 10) % 10;
    var third = i % 10;
    var sum = first ** 3 + second ** 3 + third ** 3;
    if (i === sum) {
      console.log(i);
    }
    i++;
  }
</script>
